package com.whut.mapper;

import com.whut.model.Sampleinfo;

import java.util.ArrayList;

public interface SampleinfoMapper {
    int deleteByPrimaryKey(Integer mKey);

    int insert(Sampleinfo record);

    int insertSelective(Sampleinfo record);

    Sampleinfo selectByPrimaryKey(Integer mKey);

    int updateByPrimaryKeySelective(Sampleinfo record);

    int updateByPrimaryKey(Sampleinfo record);

    ArrayList getAllEquipment(Integer projectId);

    ArrayList getDutyEquipByProject(Integer projectId);

    ArrayList getSampleByProjectId(Integer projectId,Integer taskId);

    void uptateSampleType(Integer mKey, Integer sampleType);

    void uptateNum(Integer mKey, Integer rangeNum1, Integer rangeNum2, Integer rangeNum3);

    ArrayList getSampleEquipByProjectId(int projectId);

    Sampleinfo getSampleTypeById(int projectId, int taskId);
}